package com.wyy.kafka.constant;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * Created by admin on 2018/4/12.
 */
public class User {
    private String id;
    private String name;
    private Integer type;
    @JSONField(format="yyyy-MM-dd")
    private Date date;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String id, String name, Integer type, Date date) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.date = date;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
